import request from '@/utils/request'

export function getJiaokaoTable(params) {
  return request({
    url: '/chengji/Kaoshi_jiankao/getJiaokaoTable',
    method: 'get',
    params: params
  })
}

export function list(params) {
  return request({
    url: '/chengji/Kaoshi_jiankao/list',
    method: 'get',
    params: params
  })
}

export function info(params) {
  return request({
    url: '/chengji/Kaoshi_jiankao/info',
    method: 'get',
    params: params
  })
}

export function add(data) {
  return request({
    url: '/chengji/Kaoshi_jiankao/add',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: '/chengji/Kaoshi_jiankao/edit',
    method: 'post',
    data
  })
}

export function del(data) {
  return request({
    url: '/chengji/Kaoshi_jiankao/del',
    method: 'post',
    data
  })
}

export function save(data) {
  return request({
    url: '/chengji/Kaoshi_jiankao/save',
    method: 'post',
    data
  })
}

export function download() {
  return request({
    url: '/chengji/Kaoshi_jiankao/download',
    method: 'get',
    responseType: 'blob'
  })
}
